<?php

use app\data\command\CalculateCompoundInterest;
use app\data\command\UpdateReturnRate;
use think\Console;

$app = app();

if ($app->request->isCli()) {
    Console::starting(function (Console $console) {
        $console->addCommand(CalculateCompoundInterest::class);
        $console->addCommand(UpdateReturnRate::class);
    });
}
